<div  class="<?php echo ($this->isUserLogedIn() ? 'grid_12' : 'grid_16')?>">
    <form method="post" action="./photo/delete/gallery/<?php echo $_REQUEST['request']['arg'];?>/">
        <?php
        if($this->getPhotoService() != null){
            $photos = $this->photoService->getByGalleryId($_REQUEST['request']['arg']);
            if($photos != null){
                foreach ($photos as $photo){
                    ?>
        <div class="grid_4">
            <img src="<?php echo $photo->mini; ?>" alt=""/>
            <input type="checkbox" value="<?php echo $photo->id; ?>" name="photosId[]"/>
            <input type="hidden" value="<?php echo $_REQUEST['request']['arg']; ?>" name="gallery_id"/>
        </div>
        <?php }}} ?>
        <div class="grid_12">
            <input type="submit" value="trinti">
        </div>
    </form>
</div>

<?php if($this->isUserLogedIn()){?>
<div class="grid_4">
    <div class="box">
        <h2>
            <a id="toggle-list-items" href="#">Veiksmų sąrašas</a>
        </h2>
        <div><div id="list-items" class="block">
                <h5><?php echo $staticText['list_action'][0];?></h5>
                <ul >
                    <li>
                        <a href="./gallery/add/form/"><?php echo $staticText['new'][0];?></a>
                    </li>
                </ul>
                <h5><?php echo $staticText['record_action'][0];?></h5>
                <ul>
                    <li>
                        <a href="./photo/add/form/"><?php echo $staticText['add'][0];?></a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<?php }?>


